package net.zozoo.ioc.di3map;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestStudent {

    @Test
    public void testMap() {
        ApplicationContext context = new ClassPathXmlApplicationContext("student-di-map.xml");
        Student student = (Student) context.getBean("student");
        System.out.println(student);
    }
}
